import request from '@/config/axios'

export interface SpaceVO {
  spaceId?: number
  spaceName: string
  spaceType: number
  parentSpaceId: number
  parentSpaceName: string
  spaceIdPath: string
  spaceNamePath: string
  bmsId: number
  isSync: boolean
  tenantId: number
  tenantName: string
  createTime: Date
  creator: string
  creatorId: number
  deleted: boolean
}

//查询楼栋
export const getListSpace = async (spaceType: number): Promise<SpaceVO[]> => {
  return await request.get({
    url: '/biz/modularity/project1723468275223970/listSpace',
    params: {
      spaceType: spaceType
    }
  })
}
